package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.ClaimBill;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClaimBillMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClaimBill record);

    ClaimBill selectByPrimaryKey(Long id);

    List<ClaimBill> selectAll();

    int updateByPrimaryKey(ClaimBill record);

    int queryForCount(QueryObject qo);

    List<ClaimBill> queryForList(QueryObject qo);

    void deleteByInsuranceNo(String insuranceNo);

    void changeState(@Param("insuranceNo") String insuranceNo, @Param("state") int state);

    List<ClaimBill> selectBillByInsuranceNo(String insuranceNo);

    ClaimBill selectByClientId(Long id);
}